package com.project.internship.mapper;

import com.project.internship.entity.Position;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author author
 * @since 2020-04-11
 */
@Repository
public interface PositionMapper extends BaseMapper<Position> {

    List<Position> getTheBasePosition(Integer baseId);

    /**
     * 根据职位名得到其id
     * @param name
     * @return
     */
    Integer getPositionIdByName(@Param("baseId") Integer baseId,@Param("name") String name);
}
